/********************************************
 * Breadcrumb Styles
 ********************************************/

:root {
  --bs-primary: #005a86;
  --primary-color: #005a86;
  --gold-color: #a3875b;
  --bs-primary-rgb: 16, 70, 49;
  --bs-primary-text-emphasis: #083821;
  --bs-primary-bg-subtle: #d1e0d8;
  --bs-primary-border-subtle: #a3c2b2;

  /* Apply the font to body or specific elements */
  body {
    font-family: "DIN Next LT Arabic", -apple-system, BlinkMacSystemFont,
      "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  }
  .body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  .flex-1 {
    flex: 1 1 0;
  }
  /* Font weight utility classes */
  .font-ultralight {
    font-weight: 200;
  }

  .font-light {
    font-weight: 300;
  }

  .font-regular {
    font-weight: 400;
  }

  .font-medium {
    font-weight: 500;
  }

  .font-bold {
    font-weight: 700;
  }

  .font-heavy {
    font-weight: 800;
  }

  .font-black {
    font-weight: 900;
  }

  /* Gold color for accent */
  --bs-gold: #a3875b;
  --bs-gold-rgb: 212, 178, 84;

  /* Adjusting other Bootstrap variables for better harmony */
  --bs-link-color: #005a86;
  --bs-link-hover-color: #0d3826;
  --bs-focus-ring-color: rgba(16, 70, 49, 0.25);

  /* Font family */
  --bs-font-sans-serif: "DIN Next LT Arabic", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-body-font-family: var(--bs-font-sans-serif);

  /* Component specific overrides */
  --bs-btn-active-bg: #0d3826;
  --bs-btn-active-border-color: #0a2e1f;
}
/* browser scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background: #6c757d;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #005a86;
}
html {
  font-size: 100%;
  box-sizing: border-box;
}
*,
*::before,
*::after {
  box-sizing: inherit;
}

.stroke {
  font-size: 22px;
  color: #161616;
  vertical-align: sub;
}

.stroke-16 {
  font-size: 16px;
}
.stroke-24 {
  font-size: 24px;
}
.stroke-32 {
  font-size: 32px;
}

.stroke-40 {
  font-size: 40px;
}
.stroke-48 {
  font-size: 48px;
}
.stroke-64 {
  font-size: 64px;
}
.border-white-30 {
  border-color: rgb(255 255 255 / 0.3) !important;
}
/* Button primary */
.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #005a86;
  --bs-btn-border-color: #005a86;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #0d3826;
  --bs-btn-hover-border-color: #0a2e1f;
  --bs-btn-focus-shadow-rgb: 73, 115, 98;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #0a2e1f;
  --bs-btn-active-border-color: #09241b;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #005a86;
  --bs-btn-disabled-border-color: #005a86;
}

/* Button outline primary */
.btn-outline-primary {
  --bs-btn-color: #005a86;
  --bs-btn-border-color: #005a86;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #005a86;
  --bs-btn-hover-border-color: #005a86;
  --bs-btn-focus-shadow-rgb: 16, 70, 49;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #005a86;
  --bs-btn-active-border-color: #005a86;
  --bs-btn-disabled-color: #005a86;
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: #005a86;
}

/* Background colors */
.bg-primary {
  background-color: #005a86 !important;
}

/* Text colors */
.text-primary {
  color: #005a86 !important;
}

/* Border colors */
.border-primary {
  border-color: #005a86 !important;
}

/* Links */
a {
  color: #005a86;
}
a:hover {
  color: #0d3826;
}
p {
  font-size: 1.2rem;
}

/* Form controls */
.form-control:focus,
.form-select:focus {
  border-color: #a3c2b2;
  box-shadow: 0 0 0 0.25rem rgba(16, 70, 49, 0.25);
}

/* Custom form controls */
.form-check-input:checked {
  background-color: #005a86;
  border-color: #005a86;
}

/* Modal headers */
.modal-header {
  border-bottom-color: rgba(16, 70, 49, 0.2);
}

/* Gold accent color utility classes */
.text-gold {
  color: #a3875b !important;
}
.bg-gold {
  background-color: #a3875b !important;
}
.bg-gold-10 {
  background-color: rgba(163, 135, 91, 0.1) !important;
}
.border-gold {
  border-color: #a3875b !important;
}

/* Additional styles for specific components */
.card-header {
  background-color: rgba(16, 70, 49, 0.05);
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background-color: #005a86;
  color: #fff;
}

/* Pagination */
.page-item.active .page-link {
  background-color: #005a86;
  border-color: #005a86;
}
.page-link {
  color: #005a86;
}
.page-link:hover {
  color: #0d3826;
}

/* Progress bars */
.progress-bar {
  background-color: #005a86;
}

/* List groups */
.list-group-item.active {
  background-color: #005a86;
  border-color: #005a86;
}

/* Dropdown */
.dropdown-item.active,
.dropdown-item:active {
  background-color: #dee2e6;
}

/* Ensure the new green color is used in mode-toggle switch we created earlier */
.mode-toggle .form-check-input:checked {
  background-color: #005a86;
  border-color: #005a86;
}

/* Custom dropdown styling with arrow-down-01 */
.dropdown-toggle::after {
  display: none !important; /* Hide default Bootstrap dropdown arrow */
}

/* Custom Cards Shadow */
.card {
  box-shadow: 0px 12px 16px -4px rgba(16, 24, 40, 0.08),
    0px 4px 6px -2px rgba(16, 24, 40, 0.03) !important;
  border: 0 !important;
}
#international-relations-section .card {
  box-shadow: none !important;
}

/* Leadership Card Styles */
.leadership-card .d-flex {
  position: relative;
  overflow: hidden;
}

.leadership-card .d-flex::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, #fff 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.text-justify {
  text-align: justify;
}

/********************************************
 * Breadcrumb Styles
 ********************************************/
.breadcrumb-bg {
  background-color: rgba(0, 104, 179, 0.05);
  /*background-image: url("/Style Library/PORTAL/V1/img/breadcrumnb.svg"); */
  background-repeat: no-repeat;
  background-position: left;
  background-size: auto 100%;
  width: auto;
  height: 100%;
  margin: 0;
  border-top: #0067b3 3px solid;
}

/********************************************
 * Hero Banner Styles
 ********************************************/
.hero-banner-wrapper {
  background-image: url("/Style Library/PORTAL/V1/img/hero-bg.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-banner-wrapper img {
  max-height: 50vh;
}

/*  Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .hero-banner-wrapper img {
    height: 200px;
  }
}

/*  Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-banner-wrapper img {
    height: 250px;
  }
}

/*  X-Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-banner-wrapper img {
    height: 300px;
  }
}

/*  XX-Large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .hero-banner-wrapper img {
    height: 400px;
  }
}
/********************************************
 * News Styles
*********************************************/
.news-card {
  overflow: hidden;
  border-radius: 16px;
  height: 350px;
}

.news-card:hover {
  background: linear-gradient(to top, var(--gold-color) 0%, white 100%);
  color: #ffffff;
}

.news-card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease-in-out;
}

.news-card:hover img {
  transform: scale(1.1);
  transition: transform 0.3s ease-in-out;
  border-radius: 16px;
}

.news-card:hover span,
.news-card:hover h5 a {
  color: #ffffff !important;
}

.news-card img {
  transition: transform 0.3s ease-in-out;
}

.news-card-image-container {
  overflow: hidden;
}
.clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4em;
  max-height: 2.8em; /* fallback for browsers that don't support line-clamp */
}
.clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4em;
  max-height: 2.8em; /* fallback for browsers that don't support line-clamp */
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .news-card {
    height: 120px;
  }

  .news-card img {
    height: 120px;
  }
}

/*  Small devices (tablets, 768px and down) */
@media (max-width: 768px) {
  .news-card {
    height: 180px;
  }

  .news-card img {
    height: 180px;
  }
}

/*  Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .news-card {
    height: 180px;
  }

  .news-card img {
    height: 180px;
  }
}

/*  Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .news-card {
    height: 250px;
  }

  .news-card img {
    height: 250px;
  }
}

/*  X-Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .news-card {
    height: 280px;
  }

  .news-card img {
    height: 280px;
  }
}

/*  XX-Large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .news-card {
    height: 350px;
  }

  .news-card img {
    height: 350px;
  }
}

/********************************************
 * Presedent Card 
*********************************************/

.presedent-card {
  display: flex;
}
.presedent-card .presedent-image {
  width: auto;
  height: 500px;
}

@media (max-width: 1280px) {
  .presedent-card .presedent-image {
    max-width: 95% !important;
    
    border-radius: 15px;
  }
}

@media (max-width: 992px) {
  .presedent-card .presedent-image {
    max-width: 95% !important;
    height: 350px !important;
    border-radius: 15px;
  }
}

.presedent-card a {
  min-width: 200px;
}

/********************************************
 * Video Card
*********************************************/

.video-card-container {
  height: 550px;
  overflow: hidden;
  position: relative;
}

.video-card-container .video-background {
  object-fit: cover;
  transition: transform 0.3s ease;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.video-card-container .card-overlay {
  background-color: rgba(0, 0, 0, 0.3);
  opacity: 1;
  transition: background-color 0.3s ease, opacity 0.3s ease;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
}

.video-card-container:hover .card-overlay {
  background-color: rgba(16, 70, 49, 0.7);
  opacity: 1;
}

.video-card-container:hover .video-background {
  transform: scale(1.05);
}

.video-card-container p {
  text-align: justify;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 10;
  -webkit-box-orient: vertical;
  max-height: calc(1.4em * 10);
  line-height: 1.4em;
  text-align-last: center;
}

@media (max-width: 768px) {
  .video-card-container {
    height: 400px;
  }
}

@media (max-width: 576px) {
  .video-card-container {
    height: 350px;
  }
}

/********************************************
 * Slider Cards
*********************************************/
.cards-slider-container {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 1) 0%,
    var(--primary-color) 100%
  );
}
.cards-slider-container #cards-slider {
  overflow: hidden;
  padding: 60px 0;
  position: relative;
  width: 100%;
}

.cards-list {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
  position: relative;
  height: 500px;
}

.slider-card {
  position: absolute;
  padding: 15px;
  transition: all 0.5s ease;
  top: 0px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  box-sizing: border-box;
  min-width: 380px;
  max-width: 500px;
  height: 500px;
  width: 100%;
  border-radius: 16px !important;
}

.slider-card.active {
  z-index: 5;
  transform: translateX(-50%) scale(1);
}

.slider-card.left-1 {
  z-index: 4;
  transform: translateX(-120%) scale(0.9);
}

.slider-card.left-2 {
  z-index: 3;
  transform: translateX(-190%) scale(0.8);
}

.slider-card.right-1 {
  z-index: 4;
  transform: translateX(20%) scale(0.9);
}

.slider-card.right-2 {
  z-index: 3;
  transform: translateX(90%) scale(0.8);
}

.slider-card .card-item {
  transition: all 0.5s ease;
  transform-origin: center;
  width: 100%;
  height: 100%;
}

.slider-nav {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 10;
  padding: 0 20px;
}

.slider-nav button {
  pointer-events: auto;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-nav button:hover {
  transform: scale(1.1);
}

.card-item {
  background-size: cover;
  background-position: center;
  position: relative;
  height: 400px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.5s ease;
  padding: 2rem 1rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1;
  border-radius: 16px !important;
}

.card-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(16, 70, 49, 0.6);
  z-index: -1;
  pointer-events: none;
}

.card-visual-element {
  width: 180px;
  height: 180px;
  border-radius: 50%;
}

.card-download-btn {
  margin-top: 1rem;
}

.btn-download {
  padding: 0.5rem 1.2rem;
  font-weight: 500;
}

.card-item h3 {
  margin-bottom: 15px;
  font-weight: bold;
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .slider-card {
    width: 60%;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .slider-card {
    width: 28%;
  }
}

@media (min-width: 1200px) {
  .slider-card {
    width: 19%;
  }
}

/********************************************
 * Image Gallery 
*********************************************/
.gallery-wrapper {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 1rem;
  padding: 1rem;
  margin: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: rgba(163, 135, 91, 0.5) transparent;
}

.gallery-wrapper::-webkit-scrollbar {
  height: 5px;
  display: block;
}

.gallery-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.gallery-wrapper::-webkit-scrollbar-thumb {
  background-color: rgba(163, 135, 91, 0.5);
  border-radius: 10px;
}

.gallery-wrapper:active {
  cursor: grabbing;
}

.gallery-wrapper.active {
  cursor: grabbing;
  user-select: none;
}

.image-card {
  flex-shrink: 0;
  scroll-snap-align: start;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
  height: 300px;
}

.image-card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

/* Small devices (1 image visible) */
@media (max-width: 767.98px) {
  .image-card {
    width: calc(100% - 2rem);
  }
}

/* Medium devices (2 images visible) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .image-card {
    width: calc(50% - 1rem);
  }
}

/* Large devices (3 images visible) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .image-card {
    width: calc(33.333% - 1rem);
  }
}

/* X-Large devices (4 images visible) */
@media (min-width: 1200px) {
  .image-card {
    width: calc(25% - 1rem);
  }
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

/********************************************
 * Partners Styles
*********************************************/
.partner-tabs {
  border: 0 !important;
}

/********************************************
 * Rules and Regulations Page Styles
*********************************************/
.rules-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-clip: border-box;
  border: 1px solid #d2d6db;
  border-radius: 1rem;

  /* background-image: url("/arabosai/img/card-pattern-ar.svg"); */
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: auto 80%;
  width: 100%;
  height: 100%;
  margin: 0;
}
.rules-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.4s ease;
  overflow: hidden;
  position: relative;
}

.rules-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  background: linear-gradient(45deg, #fff 0%, #f6f5f3 100%);
}

.rules-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 0%, #f6f5f3 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

/* Light sweep effect - camera light animation */
.rules-card::after {
  content: "";
  position: absolute;
  top: -150%;
  left: -210%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0);
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 40%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0.1) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(45deg);
  z-index: 2;
  transition: all 0s;
  pointer-events: none;
}

.rules-card:hover::before {
  opacity: 1;
}

.rules-card:hover::after {
  animation: shine 2.5s ease-in-out;
}

@keyframes shine {
  0% {
    left: -210%;
    transition-property: left;
  }
  100% {
    left: 0%;
    transition-property: left;
  }
}
.rules-card .card-body {
  padding-top: 250px;
}

/********************************************
 * Timeline Styles - History Page
*********************************************/
.timeline {
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    #dee2e6,
    #dee2e6 8px,
    transparent 8px,
    transparent 16px
  );
  transform: translateX(-50%);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 35%;
  width: 40px;
  height: 40px;
  background: var(--gold-color);
  border-radius: 50%;
  box-shadow: 0px 2px 12px -2px var(--gold-color);
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 0.3s;
}

.presedent-timeline {
  position: relative;
}

.presedent-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  height: 10%;
  background: repeating-linear-gradient(
    to bottom,
    #dee2e6,
    #dee2e6 8px,
    transparent 8px,
    transparent 16px
  );
  transform: translateX(-50%);
}

.presedent-timeline-dot {
  position: absolute;
  left: 50%;
  top: 10%;
  width: 40px;
  height: 40px;
  background: var(--gold-color);
  border-radius: 50%;
  box-shadow: 0px 2px 12px -2px var(--gold-color);
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 0.3s;
}


.img-fluid {
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.img-fluid-2 {
  max-height: 100%;
  width: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 992px) {
  .timeline::before {
    left: 8px;
  }

  .timeline-dot {
    left: -12px;
    transform: none;
  }

  .timeline .row {
    flex-direction: column !important;
  }

  .timeline .col {
    max-width: 100%;
    flex: 0 0 100%;
  }
}

@media (max-width: 768px) {
  .timeline .p-5 {
    padding: 1.5rem !important;
  }

  .timeline h3 {
    font-size: 1.3rem;
  }

  .timeline h4 {
    font-size: 1.1rem;
  }

  .presedent-timeline-dot {
    left: -12px;
    transform: none;
  }

  .presedent-timeline::before {
    left: 8px;
  }
}

@media (max-width: 576px) {
  .container-fluid.px-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .timeline .p-5 {
    padding: 1rem !important;
  }

  .timeline h3 {
    font-size: 1.2rem;
  }

  .timeline h4 {
    font-size: 1rem;
  }

  .timeline p {
    font-size: 0.9rem;
  }

  .timeline-dot,
  .presedent-timeline-dot {
    width: 30px;
    height: 30px;
    left: -15px;
  }

  .presedent-card .d-flex {
    text-align: center;
  }

  .presedent-image {
    max-width: 80vw;
    margin: 0 auto;
  }
}

/* Additional responsive improvements for timeline */
.timeline .row {
  margin-bottom: 2rem;
}

.timeline .row:last-child {
  margin-bottom: 0;
}

/* Ensure proper spacing and layout on mobile */
@media (max-width: 991.98px) {
  .timeline .row .col {
    margin-bottom: 1rem;
  }

  .timeline .row .col:last-child {
    margin-bottom: 0;
  }

  /* Stack content vertically on mobile */
  .timeline .order-1,
  .timeline .order-2 {
    order: unset !important;
  }
}

/* President section responsiveness */

@media (max-width: 768px) {
  .presedent-card h3,
  .presedent-card h4 {
    font-size: 1rem;
  }

  .presedent-history h3 {
    font-size: 1.2rem;
  }

  .presedent-history h4 {
    font-size: 1rem;
  }

  .presedent-history p {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .presedent-card .d-flex {
    gap: 1rem !important;
  }

  .presedent-image {
    width: 250px;
    height: auto !important ;
    object-fit: cover;
  }
}

/* Improve image responsiveness */
.timeline img {
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 576px) {
  .timeline img {
    margin-top: 1rem;
    max-height: 90vw;
    object-fit: cover;
  }
}

/********************************************
 * Footer Styles
*********************************************/

.footer-bg {
  background-color: #005a86;
  /* background-image: url("/arabosai/img/pattern-ar.svg"); */
  background-repeat: no-repeat;
  background-position: left top;
  background-size: auto 100%;
  width: 100%;
  height: 100%;
  margin: 0;
  border-top: #a1cc3a 3px solid;
}

/********************************************
 * Enhanced Competition Cards Styles - Arabic RTL Version
 ********************************************/

/* Enhanced Competition Card */
.competition-card {
  background: white;
  border-radius: 20px !important;
  border: none !important;
  box-shadow: 0 8px 32px rgba(16, 70, 49, 0.08),
    0 4px 16px rgba(16, 70, 49, 0.04);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  position: relative;
  height: 100%;
}

.competition-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0; /* Changed for RTL */
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color) 0%,
    var(--gold-color) 100%
  );
  transform: scaleX(0);
  transform-origin: right; /* Changed for RTL */
  transition: transform 0.3s ease;
}

.competition-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(16, 70, 49, 0.15),
    0 8px 24px rgba(16, 70, 49, 0.08);
}

.competition-card:hover::before {
  transform: scaleX(1);
}

/* Card Icon Background */
.card-icon-bg {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #0d3d2a 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card-icon-bg::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%; /* Changed for RTL */
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: rotate(-45deg);
  transition: all 0.6s ease;
}

.competition-card:hover .card-icon-bg {
  background: linear-gradient(135deg, var(--gold-color) 0%, #8a7049 100%);
  transform: scale(1.05);
}

.competition-card:hover .card-icon-bg::before {
  right: 100%; /* Changed for RTL */
}

.card-icon-bg i {
  font-size: 2.5rem !important;
  color: white;
  z-index: 1;
  position: relative;
}

/* Card Content */
.competition-card .card-body {
  padding: 2rem;
}

.competition-card h5 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1rem;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

.competition-card h5 a {
  color: inherit;
  text-decoration: none !important;
  transition: all 0.3s ease;
}

.competition-card:hover h5 a {
  color: var(--gold-color);
}

.competition-date {
  font-size: 0.95rem;
  color: #6c757d;
  margin-bottom: 2rem;
  padding: 0.75rem 1rem;
  background: #f8f9fa;
  border-radius: 12px;
  border-right: 4px solid var(--primary-color); /* Changed for RTL */
}

.competition-date .fw-bold {
  color: var(--primary-color);
}

/* Competition Details Grid */
.competition-details {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(16, 70, 49, 0.08);
}

.detail-column {
  text-align: center;
  position: relative;
}

.detail-column:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0; /* Changed for RTL */
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--primary-color),
    transparent
  );
}

.detail-column .detail-label {
  font-size: 0.85rem;
  color: #6c757d;
  font-weight: 500;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-column .detail-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color);
}

.file-value-section {
  text-align: center;
  padding: 1rem;
  background: white;
  border-radius: 12px;
  border: 2px dashed var(--primary-color);
  margin-top: 1rem;
}

.file-value-section .detail-label {
  color: var(--primary-color);
}

.file-value-section .detail-value {
  font-size: 1.25rem;
  color: var(--gold-color);
}

/* Enhanced Status Badges */
.competition-status {
  position: absolute;
  top: 1rem;
  left: 1rem; /* Changed for RTL */
  z-index: 10;
}

.status-badge {
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.status-badge::before {
  content: "";
  position: absolute;
  top: 0;
  right: -100%; /* Changed for RTL */
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: right 0.6s ease; /* Changed for RTL */
}

.status-badge:hover::before {
  right: 100%; /* Changed for RTL */
}

.status-current {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
}

.status-current:hover {
  background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(40, 167, 69, 0.3);
}

.status-ended {
  background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
  color: white;
}

.status-ended:hover {
  background: linear-gradient(135deg, #e74c3c 0%, #dc3545 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(220, 53, 69, 0.3);
}

/* Status Indicator Dot */
.status-badge::after {
  content: "";
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  position: absolute;
  right: 0.75rem; /* Changed for RTL */
  top: 50%;
  transform: translateY(-50%);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
  50% {
    opacity: 0.7;
    transform: translateY(-50%) scale(1.1);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .competition-card .card-body {
    padding: 1.5rem;
  }

  .card-icon-bg {
    width: 60px;
    height: 60px;
    border-radius: 15px;
  }

  .card-icon-bg i {
    font-size: 2rem !important;
  }

  .competition-card h5 {
    font-size: 1.1rem;
  }

  .detail-column:not(:last-child)::after {
    display: none;
  }

  .detail-column {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
  }

  .status-badge {
    position: static;
    margin-bottom: 1rem;
    display: inline-block;
  }
}

@media (max-width: 576px) {
  .competition-details {
    padding: 1rem;
  }

  .file-value-section {
    margin-top: 0.5rem;
  }
}

/* Print styles */
@media print {
  .competition-card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .competition-card::before,
  .competition-card::after,
  .card-icon-bg::before {
    display: none !important;
  }

  .status-badge {
    box-shadow: none !important;
    border: 1px solid currentColor !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .competition-card {
    border: 2px solid var(--primary-color) !important;
  }

  .card-icon-bg {
    border: 2px solid white;
  }

  .status-badge {
    border: 2px solid white !important;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .competition-card,
  .card-icon-bg,
  .status-badge,
  .detail-value,
  .competition-card h5 a::after {
    transition: none !important;
    animation: none !important;
  }

  .competition-card:hover {
    transform: none !important;
  }
}

/********************************************
 * Announcement Cards Styles 
 ********************************************/

/* Enhanced Announcement Card */
.announcement-card {
  background: white;
  border-radius: 20px !important;
  border: none !important;
  box-shadow: 0 8px 32px rgba(16, 70, 49, 0.08),
    0 4px 16px rgba(16, 70, 49, 0.04);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  position: relative;
}

.announcement-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0; /* Changed for RTL */
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color) 0%,
    var(--gold-color) 100%
  );
  transform: scaleX(0);
  transform-origin: right; /* Changed for RTL */
  transition: transform 0.3s ease;
}

.announcement-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(16, 70, 49, 0.15),
    0 8px 24px rgba(16, 70, 49, 0.08);
}

.announcement-card:hover::before {
  transform: scaleX(1);
}

/* Announcement Card Icon Background */
.announcement-card .card-icon-bg {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #0d3d2a 100%);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.announcement-card .card-icon-bg::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%; /* Changed for RTL */
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: rotate(-45deg);
  transition: all 0.6s ease;
}

.announcement-card:hover .card-icon-bg {
  background: linear-gradient(135deg, var(--gold-color) 0%, #8a7049 100%);
  transform: scale(1.05);
}

.announcement-card:hover .card-icon-bg::before {
  right: 100%; /* Changed for RTL */
}

.announcement-card .card-icon-bg i {
  font-size: 2rem !important;
  color: white;
  z-index: 1;
  position: relative;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.announcement-card:hover .card-icon-bg i {
  transform: scale(1.1) rotate(-5deg); /* Opposite rotation for RTL */
}

/* Card Content */
.announcement-card .card-body {
  display: flex;
  flex-direction: column;
}

.announcement-card h5 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1rem;
  color: var(--primary-color);
  transition: color 0.3s ease;
  flex-shrink: 0;
}

.announcement-card h5 a {
  color: inherit;
  text-decoration: none !important;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.announcement-card h5 a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  right: 0; /* Changed for RTL */
  background: var(--gold-color);
  transition: width 0.3s ease;
}

.announcement-card:hover h5 a {
  color: var(--gold-color);
}

.announcement-card:hover h5 a::after {
  width: 100%;
}

.announcement-card p {
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: auto;
  font-size: 0.95rem;
}

/* Download Button Styling */
.announcement-card .btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0d3d2a 100%);
  border: none;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-top: 1.5rem;
}

.announcement-card .btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  right: -100%; /* Changed for RTL */
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: right 0.6s ease; /* Changed for RTL */
}

.announcement-card .btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-color) 0%, #8a7049 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(163, 135, 91, 0.3);
}

.announcement-card .btn-primary:hover::before {
  right: 100%; /* Changed for RTL */
}

.announcement-card .btn-primary i {
  margin-right: 0.5rem; /* Changed from margin-left for RTL */
  transition: transform 0.3s ease;
}

.announcement-card .btn-primary:hover i {
  transform: translateX(-3px); /* Opposite direction for RTL */
}

/* Enhanced gradient overlay for better visual appeal */
.announcement-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--gold-color) 50%,
    transparent 100%
  );
  transform: scaleX(0);
  transition: transform 0.5s ease;
}

.announcement-card:hover::after {
  transform: scaleX(1);
}

/* Card entrance animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.announcement-card {
  animation: fadeInUp 0.6s ease forwards;
}

.announcement-card:nth-child(2) {
  animation-delay: 0.2s;
}

.announcement-card:nth-child(3) {
  animation-delay: 0.4s;
}

.announcement-card:nth-child(4) {
  animation-delay: 0.6s;
}

/* Focus states for accessibility */
.announcement-card {
  cursor: pointer;
  outline: none;
}

.announcement-card:focus {
  outline: 3px solid rgba(163, 135, 91, 0.5);
  outline-offset: 2px;
}

.announcement-card:focus:not(:focus-visible) {
  outline: none;
}

/* Touch device optimizations */
.announcement-card.touch-device {
  -webkit-tap-highlight-color: transparent;
}

/* Enhanced Announcements Container - Arabic RTL */
.announcements-container {
  padding: 2rem 0;
}

/* Loading state for download buttons */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.announcement-card .btn-primary .loading {
  animation: spin 1s linear infinite;
}

/* Card hover effects enhancement */
.announcement-card:hover {
  cursor: pointer;
}

.announcement-card:hover .card-content h5 a {
  text-decoration: none !important;
}

/* Smooth transitions for all interactive elements */
.announcement-card * {
  transition: inherit;
}

/* Enhanced focus management */
.announcement-card:focus-visible {
  outline: 3px solid var(--gold-color);
  outline-offset: 3px;
}

/* Better visual hierarchy */
.announcements-container .news-cards-container {
  min-height: 600px; /* Ensure consistent height during pagination */
}

/* Responsive enhancements */
@media (max-width: 768px) {
  .announcements-container {
    padding: 1rem 0;
  }

  .announcements-container .pagination {
    margin-top: 1.5rem;
    gap: 0.25rem;
  }

  .announcements-container .page-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }
}

/********************************************
 * Image Gallery 
*********************************************/
.gallery-wrapper {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 1rem;
  padding: 1rem;
  margin: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) transparent;
}

.gallery-wrapper::-webkit-scrollbar {
  height: 5px;
  display: block;
}

.gallery-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.gallery-wrapper::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 10px;
}

.gallery-wrapper:active {
  cursor: grabbing;
}

.gallery-wrapper.active {
  cursor: grabbing;
  user-select: none;
}

.image-card {
  flex-shrink: 0;
  scroll-snap-align: start;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
  height: 300px;
}

.image-card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

/* Small devices (1 image visible) */
@media (max-width: 767.98px) {
  .image-card {
    width: calc(100% - 2rem);
  }
}

/* Medium devices (2 images visible) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .image-card {
    width: calc(50% - 1rem);
  }
}

/* Large devices (3 images visible) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .image-card {
    width: calc(33.333% - 1rem);
  }
}

/* X-Large devices (4 images visible) */
@media (min-width: 1200px) {
  .image-card {
    width: calc(25% - 1rem);
  }
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
